package com.yummy.service;

import com.github.pagehelper.PageInfo;
import com.yummy.dto.QueryOrderVo;
import com.yummy.entity.OrderDetail;
import com.yummy.entity.Orders;

import java.util.List;

public interface OrdersService {




    Orders selectOrderByOrderId(long orderId);

    List<OrderDetail> selectOrderDetailByOrderId(long orderId);

    int modifyOrderById(Orders orders);

    int modifyOrder(Orders orders);

    /*显示用户订单*/
    PageInfo<Orders> selectOrderByUserId(long userId);

    /*显示商家所有订单*/
    PageInfo<Orders> selectAllOrder(int accountId, QueryOrderVo vo);

    List<Orders> selectAllOrderOfUser(int userId);
    List<Orders> selectAllOrderOfUser2(int userId);
    List<Orders> selectAllOrderOfUser3(int userId);
    List<Orders> selectAllOrderOfUser4(int userId);

    int selectOrderAccountOfUser(int userId);
    int selectOrderAccountOfUser2(int userId);
    int selectOrderAccountOfUser3(int userId);


    /*显示商家所有订单 待条件的*/
    PageInfo<Orders> selectAllOrderByCondition(int accountId, QueryOrderVo vo);


    int modifyOrderForDeleteByPrimaryKey(String... ids);


    int addOrder(Orders orders);

	boolean updateState(String tradeNo, int i);

}
